package com.xds.gulimall.auth.feign;

import com.xds.common.utils.R;
import com.xds.gulimall.auth.vo.SocialUse;
import com.xds.gulimall.auth.vo.UserInfo;
import com.xds.gulimall.auth.vo.UserLoginVo;
import com.xds.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : baixu
 * @date : 14:30 2021/12/16
 */
@FeignClient("gulimall-member")
public interface MemberFeign {
    @PostMapping("/member/member/regist")
    public R refist(@RequestBody UserRegistVo vo);
    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);
    @PostMapping("/member/member/oauth/login")
    public R oauthLogin(@RequestBody SocialUse socialUse);
}
